/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * panTexteAction.java
 *
 * Created on 26 juil. 2009, 15:46:18
 */

package view.ihm;

import javax.swing.JEditorPane;
import javax.swing.text.html.HTMLEditorKit;
import ctrl.sys.Const;

/**
 *
 * @author willy
 */
public class panTexteAction extends javax.swing.JPanel {

    /** Creates new form panTexteAction */
    public panTexteAction() {
        initComponents();
        setBackground(Const.couleur);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        text = new javax.swing.JEditorPane();

        text.setEditable(false);
        text.setEditorKit(new HTMLEditorKit());
        text.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        jScrollPane1.setViewportView(text);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    public JEditorPane getText() {
        return text;
    }
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JEditorPane text;
    // End of variables declaration//GEN-END:variables

}
